package cn.xopencode.scoreservice.convert.demand;
import cn.xopencode.score.api.rpc.demand.dto.ScoreAllDTO;
import cn.xopencode.score.api.rpc.demand.dto.ScoreAllRespDTO;
import cn.xopencode.score.api.rpc.demand.dto.ScoreRespDTO;
import cn.xopencode.scoreservice.dal.mysql.dataobject.demand.ScoreAllDO;
import cn.xopencode.scoreservice.dal.mysql.dataobject.demand.ScoreDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface ScoreAllConvert {
    ScoreAllConvert INSTANCE = Mappers.getMapper(ScoreAllConvert.class);
    ScoreAllDO convert(ScoreAllRespDTO bean);
    List<ScoreAllDTO> convertList(List<ScoreAllDO> list);
}
